#ifndef _LOG_HPP_
#define _LOG_HPP_

#include <iostream>
#include <ctime>

#define Notice  0
#define Warning 1
#define Error   2
#define Debug   3

const std::string msg[] = {
    "Notice",
    "Warning",
    "Error",
    "Debug"
};

std::ostream &log(std::string mes, int level){
    std::cout << " | " << (unsigned)time(nullptr)<< " | "<< msg[level] << " | " << mes ;
    return std::cout;
}


#endif